package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 错题练习记录实体类
 *
 * @author ahuan
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wrong_question_practices")
public class WrongQuestionPractice extends BaseModel {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long bookId;
    private Long recordId;
    private String answer;
    private Date practiceTime;
    private Integer isCorrect;
    private BigDecimal score;
    private Integer timeSpent;
    private String analysis;

    @TableField(exist = false)
    private WrongQuestionRecord record;
}